/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 * @author hancing.com
 */
import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { BasicModel, Page } from '../model/baseModel';

const { adminPath } = useGlobSetting();

export interface DpTmpjson extends BasicModel<DpTmpjson> {
  userno?: string; // 创建用户
  tmpname?: string; // 模版名称
  tmpjson?: string; // 模版内容
  issys?: string; // 系统模版
}

export const dpTmpjsonList = (params?: DpTmpjson | any) =>
  defHttp.get<DpTmpjson>({ url: adminPath + '/dp/stocktmp/dpTmpjson/list', params });

export const dpTmpjsonListData = (params?: DpTmpjson | any) =>
  defHttp.post<Page<DpTmpjson>>({ url: adminPath + '/dp/stocktmp/dpTmpjson/listData', params });

export const dpTmpjsonForm = (params?: DpTmpjson | any) =>
  defHttp.get<DpTmpjson>({ url: adminPath + '/dp/stocktmp/dpTmpjson/form', params });

export const dpTmpjsonSave = (params?: any, data?: DpTmpjson | any) =>
  defHttp.postJson<DpTmpjson>({ url: adminPath + '/dp/stocktmp/dpTmpjson/save', params, data });

export const dpTmpjsonDelete = (params?: DpTmpjson | any) =>
  defHttp.get<DpTmpjson>({ url: adminPath + '/dp/stocktmp/dpTmpjson/delete', params });

export const frontlist = (params?: DpTmpjson | any) =>
  defHttp.post<DpTmpjson>({ url: adminPath + '/dp/stocktmp/dpTmpjson/frontlist', params });


export const frontdelusermb = (params?: DpTmpjson | any) =>
  defHttp.post<DpTmpjson>({ url: adminPath + '/dp/stocktmp/dpTmpjson/frontdelusermb', params });

export const dpTmpjsonFrontSave = (params?: any, data?: DpTmpjson | any) =>
  defHttp.postJson<DpTmpjson>({ url: adminPath + '/dp/stocktmp/dpTmpjson/frontsave', params, data });

